public class Visibility {
	private int value;

	Visibility() {
		value	= 0x08;
	}

	void setPublic() {
      value = value & 0x07;
		value	= value | 0x01;
	}

	void setPrivate() {
      value = value & 0x07;
		value	= value | 0x02;
	}

	void setStatic() {
      value = value & 0x07;
		value	= value | 0x04;
	}

	boolean getPublic() {
		return ((value & 0x01) != 0? true: false);
	}

	boolean getPrivate() {
		return ((value & 0x02) != 0? true: false);
	}

	boolean getStatic() {
		return ((value & 0x04) != 0? true: false);
	}

   boolean getDefault() {
		return ((value & 0x08) != 0? true: false);
   }

    int getValue() {
        return value;
    }

    String getString() {
       String retStr = new String();
       if (this.getDefault()) {
          retStr  += "public(default)";
       }

       if(this.getPublic()) {
          retStr  += "public(default)";
       }
      
      if(this.getPrivate()) {
          retStr  += "private ";
       }
      
      if(this.getStatic()) {
          retStr  += "static ";
       }

       return retStr;
    }
}
